function [CNC_state,ask_list,CNC_swork]=asklist(CNC_state,ask_list,CNC_swork,over)
CNC_work=560;
ask_list=[];
for i=1:8
    if ~over(i)
        if CNC_swork(i)
            if ((CNC_state(i)-CNC_work)>= 0 )
                ask_list=[ask_list,i];
            end
        else
            CNC_state(i)=0;
            ask_list=[ask_list,i];
        end
    end
end
end